package com.example.demo.service;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.demo.entity.Story;

public interface StoryService extends IService<Story>{

    /**
     * 查询所有
     * @return
     */
    List<Story> listAll(QueryWrapper queryWrapper);

    /**
     * id条件查询
     * @return
     */
    Story listOne(Long id);

    /***
     * 保存
     * @param story
     * @return
     */
    int insert(Story story);

}